08. Play Music

Play Music

Question:

Start Quiz:

boolean playButton; // true or false

// Define a function playMusic() below.
// This should print out: "Music is playing" when playButton is true
// and "Music is paused" when playButton is false.


Solution: